import numpy as np
import cv2


img_green = np.zeros([512, 512, 3], np.uint8)
green = np.array([255, 0, 0], dtype=np.uint8)
# 广播
# img_green[:, :, 0] = 255
img_green += green
cv2.imshow("green", img_green)
cv2.waitKey(0)
cv2.destroyAllWindows()
